package com.dhemery.mack.actions;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jface.action.IAction;

//TODO Test this class
public class ActionSet {
	private List<ActionList> actionLists = new ArrayList<ActionList>();
	
	public void add(ActionList actionList) {
		actionLists.add(actionList);
	}
	
	public List<ActionList> getActionLists() {
		return actionLists;
	}

	public List<IAction> getActions() {
		List<IAction> newList = new ArrayList<IAction>();
		for(ActionList list : actionLists)
			for(IAction action : list.getActions())
				newList.add(action);
		return newList;
	}
}
